package com.hougong.im.entity;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 好友表
 * </p>
 *
 * @author lsz
 * @since 2018-08-25
 */
public class Friend implements Serializable {

    private static final long serialVersionUID = 1L;

	@TableId(value="id", type= IdType.AUTO)
	private Long id;
    /**
     * 用户A
     */
	@TableField("user_id")
	private Long userId;
    /**
     * 用户A的朋友
     */
	@TableField("friend_id")
	private Long friendId;
    /**
     * 朋友的备注名字
     */
	@TableField("f_remark")
	private String fRemark;
    /**
     * 成为好友的时刻
     */
	@TableField("create_time")
	private Date createTime;


	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getUserId() {
		return userId;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}

	public Long getFriendId() {
		return friendId;
	}

	public void setFriendId(Long friendId) {
		this.friendId = friendId;
	}

	public String getfRemark() {
		return fRemark;
	}

	public void setfRemark(String fRemark) {
		this.fRemark = fRemark;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	@Override
	public String toString() {
		return "Friend{" +
			"id=" + id +
			", userId=" + userId +
			", friendId=" + friendId +
			", fRemark=" + fRemark +
			", createTime=" + createTime +
			"}";
	}
}
